import request from '@/utils/request'

// 上传方法
export function uploadFile(file) {
  return request({
    url: '/file/upload',
    method: 'post',
    data: file
  })
}

// 下载方法
export function read(fileName) {
  return request({
    url: '/file/read',
    method: 'get',
    params: { fileName: fileName }
  })
}
